package lesson14;

public class Person 
{
	String name;
	int age;
	String personalNumber;
	char sex;
	double weight;
	Person friend;
	int health = 50; // from 0 to 100
	int starvationStatus = 50;
	int psychics = 50;
	
	void eat(int foodVolume)
	{
		if (starvationStatus + foodVolume >= 100)
			starvationStatus = 100;
		else
			starvationStatus += foodVolume;
	}
	
	void walk()
	{
		System.out.println(name + " is walking!");
		starvationStatus -= 5;
	}
	
	void growUp()
	{
		age++;
	}
	
	void drinkWater(double litres)
	{
		System.out.println(name + " is dringking " + litres + "litres of water");
		starvationStatus+=litres;
	}
	
}
